package com.lx.service;

import com.github.pagehelper.PageInfo;
import com.lx.entity.User;


import java.util.List;
import java.util.Map;

public interface UserService {

    List<User> getAllUser();


    PageInfo<User> getPageInfo(Map<String,Object> params);


    User selectById(Integer id);

    User getUserByLoginName(String userName);

    Map<String, Object> login(String loginName, String password);

   //注册
    boolean addUser(User user);

    boolean updateUser(User user);

    boolean modifyUser(User user,String oldPassword,String newPassword);

    boolean delUser(Integer id);
}
